package dk.degofedal.scala.math

class Expr private(val lhs: Expr, val o: Operator, val rhs: Expr){
  
  override def toString = {
    if(o isUnity) {
      "(" + lhs + ")"
    } else {
      "(" + lhs + " " + o + " " + rhs + ")"
    }
  }
}

object Expr {
  
  def eval(expr: String) = {
    
  }
}